﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
  <xsl:output method="html" indent="no"/>
  <xsl:decimal-format NaN=""/>
  <xsl:param name="dvt_apos">&apos;</xsl:param>
  <xsl:param name="dvt_firstrow">1</xsl:param>
  <xsl:param name="dvt_nextpagedata" />
  <xsl:param name="dvt_adhocmode" />
  <xsl:param name="dvt_filterfield" />
  <xsl:param name="dvt_filterval" />
  <xsl:param name="dvt_sortdir">ascending</xsl:param>
  <xsl:param name="dvt_sortfield" />
  <xsl:param name="dvt_sorttype">text</xsl:param>
  <xsl:variable name="dvt_1_automode">0</xsl:variable>

  <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:call-template name="dvt_1"/>
  </xsl:template>

  <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">2ColFrm</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" />
    <xsl:variable name="dvt_RowCount" select="count($Rows)" />
    <xsl:variable name="RowLimit" select="12" />
    <xsl:variable name="FirstRow" select="$dvt_firstrow" />
    <xsl:variable name="LastRow" select="$FirstRow + $dvt_RowCount - 1" />
    <xsl:variable name="IsEmpty" select="$dvt_RowCount = 0 or $RowLimit = 0" />
    <xsl:call-template name="dvt_1.toolbar">
      <xsl:with-param name="Rows" select="$Rows" />
    </xsl:call-template>

    <div class="am-grid-header">
      <table class="am-grid-header" cellspacing="0" cellpadding="0">
        <tr>
          <td style="width:5px">
            <img src="/Style Library/PodcastingKit/Images/mid_round_tab_lh.gif" alt="" />
          </td>
          <td class="am-grid-headerbar" valign="middle">
            <table width="100%">
              <tr>
                <td class="am-grid-headerbaritem am-grid-sort" width="35px" onmouseenter="openSortDropdown(this);" onmouseleave="closeSortDropdown(this);">
                  Sort
                  <img src="/Style Library/PodcastingKit/Images/down_arrow.gif" alt="Sort" />
                  <div class="am-grid-sortdropdown">
                    <ul>
                      <li>
                        <a href="javascript:sortGrid('podcastername');" style="color:white;">Podcaster Name</a>
                      </li>
                      <li>
                        <a href="javascript:sortGrid('rating');" style="color:white;">Rating</a>
                      </li>
                      <li>
                        <a href="javascript:sortGrid('downloads');" style="color:white;">Downloads</a>
                      </li>
                      <li>
                        <a href="javascript:sortGrid('contribution');" style="color:white;">Contribution</a>
                      </li>
                      <li>
                        <a href="javascript:sortGrid('favorites');" style="color:white;">Favorites</a>
                      </li>
                      <li>
                        <a href="javascript:sortGrid('rrpoints');" style="color:white;">RR Points</a>
                      </li>
                    </ul>
                  </div>
                </td>
                <td class="am-grid-headerbaritem">

                </td>
                <td class="am-grid-headerbaritem">

                </td>
                <td align="right" class="am-grid-headerbaritem">

                </td>
              </tr>
            </table>
          </td>
          <td style="width:5px">
            <img src="/Style Library/PodcastingKit/Images/mid_round_tab_rh.gif" alt="" />
          </td>
        </tr>
      </table>
    </div>

    <table cellspacing="0" cellpadding="0" class="cbq-layout-main">
      <tr>
        <xsl:call-template name="dvt_1.body">
          <xsl:with-param name="Rows" select="$Rows" />
          <xsl:with-param name="FirstRow" select="1" />
          <xsl:with-param name="LastRow" select="$LastRow - $FirstRow + 1" />
        </xsl:call-template>
      </tr>
    </table>
    <xsl:call-template name="dvt_1.commandfooter">
      <xsl:with-param name="FirstRow" select="$FirstRow" />
      <xsl:with-param name="LastRow" select="$LastRow" />
      <xsl:with-param name="RowLimit" select="$RowLimit" />
      <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
      <xsl:with-param name="RealLastRow" select="number(ddwrt:NameChanged('',-100))" />
    </xsl:call-template>
  </xsl:template>

  <xsl:template name="dvt_1.body">
    <xsl:param name="Rows" />
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:for-each select="$Rows">
      <xsl:sort select="*[name() = $dvt_sortfield] | @*[name() = $dvt_sortfield] | text()[name(ancestor::*[1]) = $dvt_sortfield]" order="{$dvt_sortdir}" data-type="{$dvt_sorttype}" />
      <xsl:variable name="dvt_KeepItemsTogether" select="false()" />

      <xsl:variable name="dvt_HideGroupDetail" select="false()" />
      <xsl:if test="(position() &gt;= $FirstRow and position() &lt;= $LastRow) or $dvt_KeepItemsTogether">
        <xsl:if test="not($dvt_HideGroupDetail)" ddwrt:cf_ignore="1">
          <xsl:call-template name="dvt_1.rowview" />
        </xsl:if>
      </xsl:if>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="dvt_1.rowview">
    <xsl:variable name="PictureUrl">
      <xsl:choose>
        <xsl:when test="string-length(@Picture) &gt; 0">
          <xsl:value-of select="substring-before(@Picture, ',')" />
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="string('/Style Library/PodcastingKit/Images/NoAuthorImage.jpg')" disable-output-escaping="yes" />
        </xsl:otherwise>
      </xsl:choose>
    </xsl:variable>
    <xsl:variable name="UserUrl">
      <xsl:value-of select="concat(string('/Pages/PodcasterDetail.aspx?aid='), @ID)" />
    </xsl:variable>
    <td class="gal_item_wraper" valign="top" style="margin:0px;">
      <div class="am-griditem">
        <center>
          <div>
            <a href="{$UserUrl}">
              <img src="{$PictureUrl}" width="120px" height="90px" alt="{@Name}" />
            </a>
          </div>
          <div class="am-griditem-username">
            <table>
              <tr width="120px">
                <td valign="middle">
                  <b>
                    <a class="am-desclink" href="{$UserUrl}">
                      <xsl:value-of select="@Title" />
                    </a>
                  </b>
                </td>
              </tr>
            </table>
          </div>
        </center>
        <div style="height:24px;">
          <xsl:value-of select="@JobTitle" />
        </div>
        <div>
          <img src="/Style Library/PodcastingKit/Images/star_gray.gif" alt="Rating" />
          <img src="/Style Library/PodcastingKit/Images/star_gray.gif" alt="Rating" />
          <img src="/Style Library/PodcastingKit/Images/star_gray.gif" alt="Rating" />
          <img src="/Style Library/PodcastingKit/Images/star_gray.gif" alt="Rating" />
          <img src="/Style Library/PodcastingKit/Images/star_gray.gif" alt="Rating" />
        </div>
        <div>
          # Rating(s)
        </div>
        <table width="100%" style="margin-top:6px;">
          <tr>
            <td>Downloads</td>
            <td align="right">0</td>
          </tr>
          <tr>
            <td>Contribution</td>
            <td align="right">0</td>
          </tr>
          <tr>
            <td>Favorites</td>
            <td align="right">0</td>
          </tr>
          <tr>
            <td>R&amp;R Points</td>
            <td align="right">0</td>
          </tr>
        </table>
      </div>
    </td>
    <xsl:if test="position() mod 4 = 0" ddwrt:cf_ignore="1">
      <xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
      <xsl:if test="position() != last()" ddwrt:cf_ignore="1">
        <xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
      </xsl:if>
    </xsl:if>
    <xsl:if test="position() = last()" ddwrt:cf_ignore="1">
      <xsl:if test="position() mod 2 != 0" ddwrt:cf_ignore="1">
        <td>
          <xsl:text xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" ddwrt:nbsp-preserve="yes" disable-output-escaping="yes">&amp;nbsp;</xsl:text>
        </td>
      </xsl:if>
    </xsl:if>
  </xsl:template>

  <xsl:template name="dvt_1.commandfooter">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />

    <table class="am-grid-header" cellspacing="0" cellpadding="0">
      <tr>
        <td style="width:5px">
          <img src="/Style Library/PodcastingKit/Images/mid_round_tab_lh.gif" alt="" />
        </td>
        <td class="am-grid-headerbar">
          <table cellspacing="0" cellpadding="4" border="0" width="100%">
            <tr>
              <xsl:if test="$FirstRow &gt; 1 or $dvt_nextpagedata">
                <xsl:call-template name="dvt_1.navigation">
                  <xsl:with-param name="FirstRow" select="$FirstRow" />
                  <xsl:with-param name="LastRow" select="$LastRow" />
                  <xsl:with-param name="RowLimit" select="$RowLimit" />
                  <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
                  <xsl:with-param name="RealLastRow" select="$RealLastRow" />
                </xsl:call-template>
              </xsl:if>
            </tr>
          </table>
        </td>
        <td style="width:5px">
          <img src="/Style Library/PodcastingKit/Images/mid_round_tab_rh.gif" alt="" />
        </td>
      </tr>
    </table>
  </xsl:template>

  <xsl:template name="dvt_1.navigation">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <xsl:variable name="PrevRow">
      <xsl:choose>
        <xsl:when test="$FirstRow - $RowLimit &lt; 1">1</xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$FirstRow - $RowLimit" />
        </xsl:otherwise>
      </xsl:choose>
    </xsl:variable>
    <xsl:variable name="LastRowValue">
      <xsl:choose>
        <xsl:when test="$LastRow &gt; $RealLastRow">
          <xsl:value-of select="$LastRow"></xsl:value-of>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$RealLastRow"></xsl:value-of>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:variable>
    <xsl:variable name="NextRow">
      <xsl:value-of select="$LastRowValue + 1"></xsl:value-of>
    </xsl:variable>
    <td class="ms-paging" align="right">
      <xsl:if test="$dvt_firstrow &gt; 1" ddwrt:cf_ignore="1">
        <a>
          <xsl:attribute name="href">
            javascript:
            <xsl:value-of select="ddwrt:GenFireServerEvent('dvt_firstrow={1};dvt_startposition={}')" />;
          </xsl:attribute>
          Start
        </a>
        <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
        <a>
          <xsl:attribute name="href">javascript: history.back();</xsl:attribute>
          <img src="/_layouts/images/prev.gif" border="0" alt="Previous" />
        </a>
        <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
      </xsl:if>
      <xsl:value-of select="$FirstRow" />
      - <xsl:value-of select="$LastRowValue" />
      <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">&amp;nbsp;</xsl:text>

      <xsl:if test="$LastRowValue &lt; $dvt_RowCount or string-length($dvt_nextpagedata)!=0" ddwrt:cf_ignore="1">
        <a>
          <xsl:attribute name="href">
            javascript:
            <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$NextRow,'};dvt_startposition={',$dvt_nextpagedata,'}'))" />;
          </xsl:attribute>
          <img src="/_layouts/images/next.gif" border="0" alt="Next" />
        </a>
      </xsl:if>
    </td>
  </xsl:template>
  <xsl:template name="dvt.filterfield">
    <xsl:param name="fieldname" />
    <xsl:param name="fieldtitle" />
    <xsl:param name="Rows" />
    <xsl:param name="fieldtype" />
    <xsl:variable name="dvt_FieldNameNoAtSign" select="substring-after($fieldname, '@')" />
    <xsl:variable name="filtertype">
      <xsl:if test="starts-with($fieldtype,'date')">date</xsl:if>
    </xsl:variable>
    <xsl:variable name="sorttype">
      <xsl:choose>
        <xsl:when test="starts-with($fieldtype,'number')">number</xsl:when>
        <xsl:otherwise>text</xsl:otherwise>
      </xsl:choose>
    </xsl:variable>
    <xsl:variable name="clientText">&apos; + this.options[this.selectedIndex].value + &apos;</xsl:variable>
    <xsl:if test="not(contains($fieldname, '/')) and not(contains($fieldname, '['))" ddwrt:cf_ignore="1">
      <xsl:value-of select="$fieldtitle" />
      <xsl:text disable-output-escaping="yes">:&lt;br&gt;</xsl:text>
      <select name="{$fieldname}_filterval">
        <xsl:attribute name="onchange">
          javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('NotUTF8;dvt_filterfield={',$fieldname,'};dvt_filtertype={',$filtertype,'};dvt_adhocmode={false()};dvt_filterval={',$clientText,'}'))" />;
        </xsl:attribute>
        <option value="##dvt_empty##">
          <xsl:if test="$dvt_filterfield=$fieldname and $dvt_filterval=''">
            <xsl:attribute name="selected">true</xsl:attribute>
          </xsl:if>
          (Empty)
        </option>

        <option value="##dvt_all##">
          <xsl:choose>
            <xsl:when test="not($dvt_filterfield)">
              <xsl:attribute name="selected">true</xsl:attribute>
            </xsl:when>
            <xsl:when test="$dvt_filterfield!=$fieldname">
              <xsl:attribute name="selected">true</xsl:attribute>
            </xsl:when>
          </xsl:choose>
          (All)
        </option>

        <xsl:value-of select="ddwrt:NameChanged('',1)" />
        <xsl:choose>
          <xsl:when test="starts-with($fieldname, '@')">
            <xsl:variable name="dvt_Rows">
              <xsl:for-each select="$Rows">
                <xsl:sort select="@*[name()=$fieldname]" order="ascending" data-type="{$sorttype}" />

                <xsl:copy-of select="." />
              </xsl:for-each>
            </xsl:variable>
            <xsl:for-each select="msxsl:node-set($dvt_Rows)/*[not(@*[name()=$dvt_FieldNameNoAtSign]=preceding-sibling::*[1]/@*[name()=$dvt_FieldNameNoAtSign])]/@*[name()=$dvt_FieldNameNoAtSign]">
              <xsl:sort data-type="{$sorttype}" />
              <xsl:call-template name="dvt.filteroption">
                <xsl:with-param name="name" select="$fieldname" />
                <xsl:with-param name="value" select="." />
                <xsl:with-param name="type" select="$fieldtype" />
              </xsl:call-template>
            </xsl:for-each>
          </xsl:when>
          <xsl:when test="$fieldname = '.'">
            <xsl:variable name="dvt_Rows">
              <xsl:for-each select="$Rows">
                <xsl:sort select="." order="ascending" data-type="{$sorttype}" />

                <xsl:copy-of select="." />
              </xsl:for-each>
            </xsl:variable>
            <xsl:for-each select="msxsl:node-set($dvt_Rows)/*[not(.=preceding-sibling::*[1])]">
              <xsl:sort data-type="{$sorttype}" />
              <xsl:call-template name="dvt.filteroption">
                <xsl:with-param name="name" select="$fieldname" />
                <xsl:with-param name="value" select="." />
                <xsl:with-param name="type" select="$fieldtype" />
              </xsl:call-template>
            </xsl:for-each>
          </xsl:when>
          <xsl:otherwise>
            <xsl:variable name="dvt_Rows">
              <xsl:for-each select="$Rows">
                <xsl:sort select="*[name()=$fieldname]" order="ascending" data-type="{$sorttype}" />

                <xsl:copy-of select="." />
              </xsl:for-each>
            </xsl:variable>
            <xsl:for-each select="msxsl:node-set($dvt_Rows)/*[not(*[name()=$fieldname]=preceding-sibling::*[1]/*[name()=$fieldname])]/*[name()=$fieldname]">
              <xsl:sort data-type="{$sorttype}" />
              <xsl:call-template name="dvt.filteroption">
                <xsl:with-param name="name" select="$fieldname" />
                <xsl:with-param name="value" select="." />
                <xsl:with-param name="type" select="$fieldtype" />
              </xsl:call-template>
            </xsl:for-each>
          </xsl:otherwise>
        </xsl:choose>
        <xsl:value-of select="ddwrt:NameChanged('',1)" />

      </select>
    </xsl:if>
  </xsl:template>
  <xsl:template name="dvt.filteroption">
    <xsl:param name="name" />
    <xsl:param name="value" />
    <xsl:param name="type" />
    <xsl:if test="not(starts-with($type,'date')) or ddwrt:NameChanged($value,1)">
      <xsl:variable name="output">
        <xsl:choose>
          <xsl:when test="$type = 'number'">
            <xsl:value-of select="format-number($value,'#,##0.##;-#,##0.##')" />
          </xsl:when>
          <xsl:when test="starts-with($type,'number|')">
            <xsl:variable name="spec" select="substring-after($type,'|')" />
            <xsl:choose>
              <xsl:when test="contains($spec, 'lcid')">
                <xsl:variable name="apos">&apos;</xsl:variable>
                <xsl:variable name="realspec" select="substring-after($spec, $apos)" />
                <xsl:variable name="formatspec" select="substring-before($realspec, $apos)" />
                <xsl:variable name="formatspec2" select="substring-after($realspec, $apos)" />
                <xsl:variable name="lcid" select="normalize-space(substring-after($formatspec2, ','))" />
                <xsl:value-of select="format-number($value,string($formatspec), substring($lcid,2,string-length($lcid)-2))" />

              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="format-number($value,substring($spec,2,string-length($spec)-2))" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:when>
          <xsl:when test="starts-with($type,'date')">
            <xsl:value-of select="ddwrt:FormatDate(string($value),1033,3)" />
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$value" />
          </xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
      <option>
        <xsl:attribute name="value">
          <xsl:value-of select="ddwrt:ConnEncode(normalize-space($value))" />
        </xsl:attribute>
        <xsl:if test="$dvt_filterfield=$name and $dvt_filterval=normalize-space($value) and $dvt_filterval!=''">
          <xsl:attribute name="selected">true</xsl:attribute>
        </xsl:if>
        <xsl:choose>
          <xsl:when test="string-length($output) &gt; 40">
            <xsl:value-of select="substring($output, 1, 40)" /> ...
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$output" />
          </xsl:otherwise>
        </xsl:choose>
      </option>

    </xsl:if>
  </xsl:template>
  <xsl:template name="dvt_1.toolbar">
    <xsl:param name="Rows" />
    <table cellSpacing="0" cellPadding="2" border="0" class="ms-toolbar" style="margin-left: 3px; margin-right: 5px;">
      <tr>
        <td id="dvt_tb_sort" nowrap="nowrap">
          <table>
            <tr>
              <td nowrap="nowrap" class="ms-toolbar">
                <nobr>
                  Sort by: <select>
                    <xsl:variable name="clvar1_dvt_sortfield">&apos; + this.options[this.selectedIndex].value + &apos;</xsl:variable>
                    <xsl:variable name="clvar2_dvt_sortfield">&apos; + this.options[this.selectedIndex].fieldtype + &apos;</xsl:variable>
                    <xsl:variable name="clvar3_dvt_sortfield">&apos; + this.options[this.selectedIndex].title + &apos;</xsl:variable>
                    <xsl:variable name="clvar4_dvt_sortfield">&apos; + this.options[this.selectedIndex].sorttype + &apos;</xsl:variable>
                    <xsl:attribute name="OnChange">
                      javascript:<xsl:value-of select="ddwrt:GenFireServerEvent(concat('NotUTF8;dvt_sortfield={', $clvar1_dvt_sortfield, '};dvt_sortdir={', $dvt_sortdir, '};dvt_sorttype={', $clvar4_dvt_sortfield, '}'))" />
                    </xsl:attribute>
                    <option value="">None</option>
                    <option value="Title">
                      <xsl:if test="$dvt_sortfield='Title'">
                        <xsl:attribute name="selected">yes</xsl:attribute>
                      </xsl:if>
                      Name
                    </option>
                    <option value="JobTitle">
                      <xsl:if test="$dvt_sortfield='JobTitle'">
                        <xsl:attribute name="selected">yes</xsl:attribute>
                      </xsl:if>
                      Title
                    </option>
                  </select><a>
                    <xsl:attribute name="href">
                      <xsl:choose>
                        <xsl:when test="$dvt_sortdir='descending'">
                          javascript:<xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_sortfield={', $dvt_sortfield, '};dvt_sortdir={ascending}'))" />
                        </xsl:when>
                        <xsl:otherwise>
                          javascript:<xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_sortfield={', $dvt_sortfield, '};dvt_sortdir={descending}'))" />
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:attribute>
                    <xsl:if test="$dvt_sortfield" ddwrt:cf_ignore="1">
                      <img border="0">
                        <xsl:attribute name="src">
                          <xsl:choose>
                            <xsl:when test="$dvt_sortdir='descending'">
                              <xsl:value-of select="ddwrt:FieldSortImageUrl('Asc')" />
                            </xsl:when>
                            <xsl:otherwise>
                              <xsl:value-of select="ddwrt:FieldSortImageUrl('Desc')" />
                            </xsl:otherwise>
                          </xsl:choose>
                        </xsl:attribute>
                        <xsl:attribute name="alt">
                          <xsl:choose>
                            <xsl:when test="$dvt_sortdir='descending'">Descending</xsl:when>
                            <xsl:otherwise>Ascending</xsl:otherwise>
                          </xsl:choose>
                        </xsl:attribute>
                      </img>
                    </xsl:if>
                  </a>
                </nobr>
              </td>
            </tr>
          </table>
        </td>
        <td width="99%"></td>
      </tr>
    </table>
    <xsl:if test="$dvt_adhocmode = 'filter'" ddwrt:cf_ignore="1">
      <table cellSpacing="0" cellPadding="2" border="0" class="ms-toolbar" style="margin-left: 3px; margin-right: 5px;">
        <tr>
          <th nowrap="nowrap">
            <table>
              <tr>
                <td class="ms-toolbar" nowrap="nowrap">
                  <xsl:call-template name="dvt.filterfield">
                    <xsl:with-param name="fieldname">@Title</xsl:with-param>
                    <xsl:with-param name="fieldtitle">Name</xsl:with-param>
                    <xsl:with-param name="Rows" select="$Rows" />
                    <xsl:with-param name="fieldtype">text</xsl:with-param>
                  </xsl:call-template>
                </td>
              </tr>
            </table>
          </th>
          <th nowrap="nowrap">
            <table>
              <tr>
                <td class="ms-toolbar" nowrap="nowrap">
                  <xsl:call-template name="dvt.filterfield">
                    <xsl:with-param name="fieldname">@JobTitle</xsl:with-param>
                    <xsl:with-param name="fieldtitle">Title</xsl:with-param>
                    <xsl:with-param name="Rows" select="$Rows" />
                    <xsl:with-param name="fieldtype">text</xsl:with-param>
                  </xsl:call-template>
                </td>
              </tr>
            </table>
          </th>
          <td width="99%"></td>
        </tr>
      </table>
    </xsl:if>
    <hr></hr>
  </xsl:template>
</xsl:stylesheet>
